home *** CD-ROM | disk | FTP | other *** search
Modula Definition | 1996-06-21 | 1.4 KB | 52 lines | [TEXT/MEDT] |
- DEFINITION MODULE MatVecOps;
-
- (*******************************************************************
-
- Module MatVecOps (Version 1.0)
-
- Copyright ©1993 by Olivier Roth, Andreas Fischlin,
- and Swiss Federal Institute of Technology Zürich ETHZ
-
- Purpose: Matrix Vector Operations
-
- Remarks: for scalar matrix operations see MatrixSclOps
-
- This modulde is part of the Mat-library, which forms
- part of the RAMSES package.
-
- Programming
-
- o Design and Implementation
- O. Roth 3/12/90
- A. Fischlin 28/05/93
-
-
- Systems Ecology Group
- Swiss Federal Institute of Technology Zurich ETHZ
- Department of Environmental Sciences
- Grabenstr. 3
- CH-8952 Schlieren/Zurich
- Switzerland
-
- Last revision of definition: 28/05/93 af
-
- *******************************************************************)
-
- FROM Matrices IMPORT Matrix;
-
-
- VAR
- matrixVecOpsOk: BOOLEAN; (* returns success of operation *)
-
-
- PROCEDURE MatAdd ( a, b: Matrix; c: Matrix ); (* c := a + b *)
- PROCEDURE MatSub ( a, b: Matrix; c: Matrix ); (* c := a - b *)
- PROCEDURE MatMult( a, b: Matrix; c: Matrix ); (* c := a * b *)
-
- PROCEDURE MatInv( a: Matrix ); (* a := a^-1 *)
-
- PROCEDURE MatTranspose( a: Matrix ); (* a := a' *)
-
-
- END MatVecOps.
-